package com.ruoyi.system.service.construction.impl;

import com.ruoyi.system.domain.construction.StrategyPicture;
import com.ruoyi.system.mapper.construction.StrategyPictureMapper;
import com.ruoyi.system.service.construction.StrategyPictureService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class StrategyPictureServiceImpl implements StrategyPictureService
{
    @Autowired
    private StrategyPictureMapper strategyPictureMapper;

    /**
     * 查询施工攻略图片
     *
     * @param pictureId 施工攻略图片ID
     * @return 施工攻略图片
     */
    @Override
    public StrategyPicture selectStrategyPictureById(Integer pictureId)
    {
        return strategyPictureMapper.selectStrategyPictureById(pictureId);
    }

    /**
     * 查询施工攻略图片列表
     *
     * @param strategyPicture 施工攻略图片
     * @return 施工攻略图片
     */
    @Override
    public List<StrategyPicture> selectStrategyPictureList(StrategyPicture strategyPicture)
    {
        return strategyPictureMapper.selectStrategyPictureList(strategyPicture);
    }

    /**
     * 新增施工攻略图片
     *
     * @param strategyPicture 施工攻略图片
     * @return 结果
     */
    @Override
    public int insertStrategyPicture(StrategyPicture strategyPicture)
    {
        return strategyPictureMapper.insertStrategyPicture(strategyPicture);
    }

    /**
     * 修改施工攻略图片
     *
     * @param strategyPicture 施工攻略图片
     * @return 结果
     */
    @Override
    public int updateStrategyPicture(StrategyPicture strategyPicture)
    {
        return strategyPictureMapper.updateStrategyPicture(strategyPicture);
    }

    /**
     * 批量删除施工攻略图片
     *
     * @param pictureIds 需要删除的施工攻略图片ID
     * @return 结果
     */
    @Override
    public int deleteStrategyPictureByIds(Integer[] pictureIds)
    {
        return strategyPictureMapper.deleteStrategyPictureByIds(pictureIds);
    }

    /**
     * 删除施工攻略图片信息
     *
     * @param pictureId 施工攻略图片ID
     * @return 结果
     */
    @Override
    public int deleteStrategyPictureById(Integer pictureId)
    {
        return strategyPictureMapper.deleteStrategyPictureById(pictureId);
    }

    @Override
    public List<StrategyPicture> findAllPicById(Long constructionStrategyId) {
        return strategyPictureMapper.findAllPicById(constructionStrategyId);
    }
}
